package com.utilities.pipelineScripts;

import java.util.Comparator;

import com.utilities.dataStructures.Range;

public class RangeComparator implements Comparator<Range>
{
	@Override
	public int compare(Range o1, Range o2) {
		int diff =  o1.getLowerLimit() - o2.getLowerLimit();
		if (diff == 0)
		{
			diff = o1.getUpperLimit() - o2.getUpperLimit();
		}
		return diff;
	}
}	
